package com.ny.wlw;

public class BankPay implements Pay{
    double m=150;
    public void pay(double money){
        if(m>=money){
            System.out.println("你消费的金额为"+money);
            m=m-money;
            System.out.println("余额"+m);
        }
    else {
            System.out.println("你的余额不足");
        }
    }

}
